question

Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles asked Felix Möhlmann answered

Acquire closest task executer on process flow

Hello,

I have a group of task executer and a group of operators, when I acquire both for a task, I need to acquire the task executer which is closest to the operator. How do i do that on process flow? I believe I need to write a query to filter it on the acquire block, but i don't know how.

Hope I was clear enough, otherwise I'll link my model and give more details on comments bellow. Thanks!

FlexSim 24.1.0
task executeraquire closest
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
You choose first your operator. When you acquire a taskexecuter, you pass in a puller. This must be in a way be able to reference a location of your operator in a dynamic field of your resources to compute a distance to list values. Then you can order by this distance field the list values and acquire a resource.
0 Likes 0 ·
Leandro Meirelles avatar image Leandro Meirelles Joerg Vogel commented ·

I created a list "Carts list" and placed a "pull from list" before the acquire and and "push to list" before the release. But when i change the resource "Carts" to use the list instead of the group it gets errors, what I am doing wrong?


Follows attached the model: problem acquire.fsm

0 Likes 0 ·
Gustavo Teodoro avatar image Gustavo Teodoro Leandro Meirelles commented ·

@Leandro Meirelles Which errors are happening? I ran the model and no errors appeared in the FlexSim console.

0 Likes 0 ·
Show more comments

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You are correct, you do not need a separate list. A resource that is linked to actual objects already creates a list for those internally and functions the same, just with fewer settings in the Acquire activity then in Pull from List.

One of those missing options is the ability to set who the "puller" is, so you need to shift the reference in the list field code. (The base for the list expression is the "distance" option from the "Fixed Resource" category)

capture1.png


capture1.png (48.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.